#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:Charles.chen
# createDate:2017/9/28
# Title:
# Tip:


# 恢复配置文件（从配合文件列表中选择一个配置文件进行恢复）
def restoreConfig(fileName=None):
    if fileName is None:
        return None
    configPath = "config.ini"
    allPath = '/backups/appConfigFiles/'+fileName
    with open(configPath, "w") as ps:
        sourceFile = open(allPath, 'r')
        ps.write(sourceFile.readlines())
        sourceFile.close()
        pass
    pass
